﻿
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[sproc_MailGetAttachFilesInfo]') AND type in (N'P', N'PC'))
    DROP PROCEDURE [dbo].[sproc_MailGetAttachFilesInfo];
GO
-------------------------------------------------------------------------------
-- sproc_MailGetAttachFilesInfo

-------------------------------------------------------------------------------
CREATE PROCEDURE [dbo].[sproc_MailGetAttachFilesInfo]
(
    @MailID            nvarchar(200)
)
AS
    if(len(@MailID)<8)
    begin
       SELECT FileName,FileSize,FileVisualPath,FileID FROM TabMailAttachFiles  WHERE MailID=@MailID
    end